﻿requirejs.config({
	baseUrl: '/Scripts',
	paths: {
		'jquery': 'libs/jquery-1.11.0.min',
		'ka': 'application/konsol.antresol',
		'ka.calc': 'application/konsol.antresol.calculator',
		'jquery.tmpl': 'libs/jquery.tmpl.min',
		'magnificpopup': 'libs/jquery.magnific-popup.min',
		'ka.imagebox': 'application/konsol.antresol.imagebox'
	},
	shim: {
		'jquery': {
			exports: 'jQuery'
		},
		'ka': {
			deps: ['jquery', 'jquery.tmpl'],
			exports: 'konsolAntresol'
		},
		'ka.calc': {
			deps: ['jquery', 'ka']
		},
		'jquery.tmpl': {
			deps: ['jquery']
		},
		'magnificpopup': {
			deps: ['jquery']
		},
		'ka.imagebox': {
			deps: ['jquery', 'ka', 'magnificpopup']
		}
	}
});

define([
	'ka',
	'ka.calc',
	'ka.imagebox'
], function(KA) {
	KA.init();
});